package com.sunfeng.chap2;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;

/**
 *
 */
public class Test6_1 {
    private static FileInputStream fileInputStream;

    private static FileChannel channel;

    public static void main(String[] args) throws FileNotFoundException {
        fileInputStream = new FileInputStream(new File("d:\\b.txt"));
        channel = fileInputStream.getChannel();

        ByteBuffer byteBuffer1 = ByteBuffer.allocate(2);
        ByteBuffer byteBuffer2 = ByteBuffer.allocate(2);
    }
}
